import axios from "axios";
let gwc = {
    state: {
        goods: "",
        goodsid:{},
        adid:1
    },
    mutations: {
        GWC(state, payload) {
            state.goods = payload;
        }
    },
    actions: {
        AXIOS_LINK(context) {
            // 放置异步操作
            axios.get("/gwc").then((res) => {
                this.goods = res.data;
                context.commit("GWC",this.goods)
            });
        }
    }

}
export default gwc